#!/bin/bash

echo "开始更新程序"

cd  /data/git_code/ora-scheduler


echo "从git上面拉取代码------master主分支代码"
git pull


echo "开始maven编辑ora-scheduler包"

/usr/local/maven/bin/mvn clean package -Pdev -Dmaven.test.skip=true



echo "同步到阿里云api测试服务器"

rsync -avz /data/git_code/ora-scheduler/release_dev/scheduler/scheduler-0.0.1-SNAPSHOT-bin.zip rsync://nginx@172.17.210.46/scheduler/tmp


echo "远程启动api测试服务器部署脚本"
ansible oradt-aliyun-api -m shell -a "/data/sh/scheduler_client.sh"


echo "更新完毕！！！"

